<?php
// +----------------------------------------------------------------------
// | Author: yaoyihong <510974211@qq.com>
// +----------------------------------------------------------------------

namespace app\api\logic;

use app\common\logic\LogicBase;
use \tpfcore\Core;
use think\Validate;

class Seller extends ApiBase
{
    public function getInfo($data = [])
    {
        $list = self::getList(
            [
                'where' => ['id'=>$data['id'],"check_status"=>1],
                'field' => ['user_id', 'desc'],
                'order' => 'id asc',
                'paginate' => ['rows' => 1, 'config' => ['query' => request()->param()]],
            ]
        );

        return [0, 'success', $list];
    }
}